
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Person p1=new Person("Vasile","Vasilescu",44);
		Person p2 = new Person ("Ion","Ionescu",44);
		Person p3 = new Person ("Ion","Ionescu",44);
		
		if(p1.equals(p2))System.out.println("they are equal");
		else System.out.println("not equal");
		
		if(p1.equals(p3))System.out.println("they are equal");
		else System.out.println("not equal");

		if(p2.equals(p3))System.out.println("they are equal");
		else System.out.println("not equal");
		
		
		System.out.println(p1.hashCode());
		System.out.println(p2.hashCode());
		System.out.println(p3.hashCode());
		
	}

}
